<?php
/**
 * base controller
 * @文件名称: BaseController.php
 * @author: jawei
 * @Email: gaozhiwei@etcp.cn
 * @Date: 2017-06-06
 * @Copyright: 2017 悦畅科技有限公司. All rights reserved.
 * 注意：本内容仅限于悦畅科技有限公司内部传阅，禁止外泄以及用于其他的商业目的
 */

namespace app\base;

use app\components\DmpLog;
use Yii;
use yii\base\Controller;

class BaseController extends Controller
{
    public $layout = "public";//设置使用的布局文件
    public $userInfo;
    public $title = '默认标题';
    public $content = '默认内容';
    public static function responseError($data=[], $msg='', $code=500) {
        DmpLog::log($data, Yii::$app->params['logFromEmail']);
    }
    public static function responseOk($data=[], $successMsg='') {

    }
}
